TPT or SUT synchronous Test Execution

The input and output signals are correlated from the perspective of SUT or TPT.

TPT or SUT synchronous test execution influences the data logging during test execution, which may affect the test assessments.

Select Options | Preferences | TPT Model Behavior and switch between the SUT or TPT perspective. The SUT perspective is recommended.

SUT synchronous test execution

In the following section both perspectives are described in detail.

General

Test cases generated in TPT are connected to the SUT in a loop as shown below.

Loop of test cases in TPT and SUT

TPT and the SUT exchange data via signal connections. That is, a test case which is in charge of generating appropriate signal values, writes these signal values in the TPT output.

The TPT output is connected to the input of the SUT. The SUT reads the signal values generated by TPT and evaluates the related response at exactly the same time as receiving the input data.

The SUT sends the response to the TPT input. TPT reads the result of the SUT calculations in the next cycle. This interaction is repeated as it is shown in the following figure:

Time steps in a test

Example

TPT receives a decimal value as a signal and increments this input by 1. The result is send by TPT as output to the SUT. The SUT takes this result as input and multiplies it by two. The result of this action is send by the SUT as output to TPT that regards the new result as input.

Synchronicity example

The exchange values would be as it is shown below, having assumed x=0 at t-@:

Example time step

The order of the execution in TPT depends on whether the execution is observed for the whole process, from TPT's point of view, or from SUT's point of view.

SUT synchronous (recommended)

The input and output signals are correlated from SUT perspective.

Each time the input and output of the SUT would be saved as x and y values in a sampling interval as it is shown in the following figure. This is called SUT synchronous execution:

SUT synchronous example

Cycle y x
1 0 0
2 2 1
3 6 3

TPT synchronous

The input and output signals are correlated from TPT perspective.

Each time the input and output of the TPT would be saved as x and y values in a sampling interval as it is shown in the following figure. This is called TPT synchronous execution:

TPT synchronous example

Cycle y x
1 0 1
2 2 3
3 6 7